#ifndef SORT_H_
#define SORT_H_

#ifdef __cplusplus
extern "C" {
#endif

#include "base.h"

void InsertSort( ElemType *es, int length );
void SelectSort( ElemType *es, int length );
void BubbleSort( ElemType *es, int length );
void QuickSort( ElemType *es, int length );
void HeapSort( ElemType *es, int length );
void MergeSort( ElemType *es, int length );

void Print( ElemType *es, int length );
BOOL VectorEqual( ElemType *es1, ElemType *es2, int length );

static void swap( ElemType *e1, ElemType *e2 );

#ifdef __cplusplus
}
#endif

#endif